/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.qjs.smterp.model;

import javax.persistence.*;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * 
 * @author Vostro 3400
 */
@Entity
@Table(name = "tb_goods_instock")
@XmlRootElement
// @NamedQueries({
// @NamedQuery(name = "GoodsInstock.findAll", query =
// "SELECT g FROM GoodsInstock g"),
// @NamedQuery(name = "GoodsInstock.findByGoodsId", query =
// "SELECT g FROM GoodsInstock g WHERE g.goodsInstockPK.goodsId = :goodsId"),
// @NamedQuery(name = "GoodsInstock.findByInstockId", query =
// "SELECT g FROM GoodsInstock g WHERE g.goodsInstockPK.instockId = :instockId"),
// @NamedQuery(name = "GoodsInstock.findByGoodsCode", query =
// "SELECT g FROM GoodsInstock g WHERE g.goodsCode = :goodsCode"),
// @NamedQuery(name = "GoodsInstock.findByGoodsName", query =
// "SELECT g FROM GoodsInstock g WHERE g.goodsName = :goodsName")})
public class GoodsInstock extends BasePojo {
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "GOODINSTOCK_ID")
	 @GeneratedValue(strategy=GenerationType.IDENTITY)
	private Integer goodsinstockid;
	
	@Column(name = "GOODS_ID")
	private Integer goodsid;
	
	@Column(name = "INSTOCK_ID")
	private Integer instockid;
	
	@Column(name = "GOODS_CODE")
	private String goodsCode;
	@Column(name = "GOODS_NAME")
	private String goodsName;

	@Column(name = "UNIT_ID")
	private Integer unitid;

	@Column(name = "UNIT_CODE")
	private String unitCode;
	// @Max(value=?) @Min(value=?)//if you know range of your decimal fields
	// consider using these annotations to enforce field validation
	@Column(name = "NUMBERS_CURRENT")
	private Float numbersCurrent;
	@Column(name = "UNIT_PRICE")
	private Float unitPrice;
	@Column(name = "TOTAL_PRICE")
	private Float totalPrice;

	@Column(name = "STOCK_ID")
	private Integer stockid;
	@Column(name = "STOCK_NAME")
	private String stockName;

	@Column(name = "STOCK_SCHEDULE_ID")
	private Integer stockscheduleid;

	public GoodsInstock() {
	}
	/**
	 * @return the goodsid
	 */
	public Integer getGoodsid() {
		return goodsid;
	}

	/**
	 * @param goodsid the goodsid to set
	 */
	public void setGoodsid(Integer goodsid) {
		this.goodsid = goodsid;
	}

	/**
	 * @return the instockid
	 */
	public Integer getInstockid() {
		return instockid;
	}

	/**
	 * @param instockid the instockid to set
	 */
	public void setInstockid(Integer instockid) {
		this.instockid = instockid;
	}

	public String getGoodsCode() {
		return goodsCode;
	}

	public void setGoodsCode(String goodsCode) {
		this.goodsCode = goodsCode;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public String getUnitCode() {
		return unitCode;
	}

	public void setUnitCode(String unitCode) {
		this.unitCode = unitCode;
	}

	public Float getNumbersCurrent() {
		return numbersCurrent;
	}

	public void setNumbersCurrent(Float numbersCurrent) {
		this.numbersCurrent = numbersCurrent;
	}

	public Float getUnitPrice() {
		return unitPrice;
	}

	public void setUnitPrice(Float unitPrice) {
		this.unitPrice = unitPrice;
	}

	public Float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getStockName() {
		return stockName;
	}

	public void setStockName(String stockName) {
		this.stockName = stockName;
	}

	/**
	 * @return the goodsinstockid
	 */
	public Integer getGoodsinstockid() {
		return goodsinstockid;
	}
	/**
	 * @param goodsinstockid the goodsinstockid to set
	 */
	public void setGoodsinstockid(Integer goodsinstockid) {
		this.goodsinstockid = goodsinstockid;
	}
	public Integer getUnitid() {
		return unitid;
	}
	public void setUnitid(Integer unitid) {
		this.unitid = unitid;
	}
	public Integer getStockid() {
		return stockid;
	}
	public void setStockid(Integer stockid) {
		this.stockid = stockid;
	}
	public Integer getStockscheduleid() {
		return stockscheduleid;
	}
	public void setStockscheduleid(Integer stockscheduleid) {
		this.stockscheduleid = stockscheduleid;
	}
	

}
